//
//  SSDKPluginDeviceUtil.h
//  SuperSDKPluginTools
//
//  Created by wyht－ios－dev on 2017/7/28.
//  Copyright © 2017年 WYHT. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SSDKPluginDeviceUtil : NSObject

+(NSString *) getVersionCode;

+(NSString *) getVersionName;

+(NSString *) getDeviceID;

+(NSString *) getOS;

+(NSString *) getOSVersion;

+(NSString *) getDeviceType;

+(NSString *) getDeviceModel;

+(NSString *) getIDFA;

+(NSString *) getIDFV;

+(NSString *) getDeviceUniqId;

+(NSString *) getOP;

+(NSString *) getNetwork;

+(NSString *) getResolution;

+ (void) requestIDFA:(void(^)(NSString *idfa))result;

// 判断应用是否有用户授予的权限
+ (BOOL) hasAuthorityMedia:(NSString *)mediaType;

// 判断设备是否有摄像头
+ (BOOL) isCameraAvailable;

// 前置的摄像头是否可用
+ (BOOL) isFrontCameraAvailable;

// 后置的摄像头是否可用
+ (BOOL) isRearCameraAvailable;

// 检查摄像头是否支持录像
+ (BOOL) doesCameraSupportShootingVideos;

// 检查摄像头是否支持拍照
+ (BOOL) doesCameraSupportTakingPhotos;

// 相册是否可用
+ (BOOL) isPhotoLibraryAvailable;

// 是否可以在相册中选择视频
+ (BOOL) canUserPickVideosFromAlbum;

// 是否可以在相册中选择照片
+ (BOOL) canUserPickPhotosFromAlbum;

@end
